package mp

import (
	"duoke/model"
	"duoke/service"
	"duoke/utils/response"
	"github.com/gin-gonic/gin"
)

var Store = new(storeCtl)

type storeCtl struct{}

func (ctl *storeCtl) List(c *gin.Context) {
	req := model.ReqList{}
	list, err := service.Store.List(c, req)
	if err != nil {
		response.Error(c, err.Error(), nil)
		return
	}
	response.Success(c, "", list)
}
